import request from '@/utils/request'

export function getListByJobDutyId(params) {
  return request({
    url: '/menu/user-menus-by-jobDuty/'+params,
    method: 'get',
  })
}

export function getListByUserId(params) {
  return request({
    url: '/menu/user-menus/'+params,
    method: 'get',
  })
}

export function getList(params) {
  return request({
    url: '/menu/list/',
    method: 'get',
    params
  })
}

export function getTreeList(params) {
  return request({
    url: '/menu/tree-list',
    method: 'get',
    params
  })
}

